'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Adminlog = app.logModel.define('admin_log', {
    log_id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    admin_id: INTEGER,
    log_info: STRING(255),
    log_ip: STRING(30),
    log_url: STRING(50),
    log_time: INTEGER,
  });
  return Adminlog;
};
